package br.ufmg.ubicomp.droidguide.application;

import br.ufmg.ubicomp.droidguide.R;
import android.app.Activity;
import android.graphics.PixelFormat;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.MediaController;
import android.widget.Toast;
import android.widget.VideoView;

public class MediaPlayer extends Activity {
    
	private VideoView mVideoView;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
    	setContentView(R.layout.videoview);
        Bundle extras = getIntent().getExtras();
        String videourl = extras.getString("videourl");
    	mVideoView = (VideoView) findViewById(R.id.surface_view);
        mVideoView.setVideoPath(videourl);
        mVideoView.setMediaController(new MediaController(this));
        mVideoView.requestFocus();
        
        
    }
}